hydra-server: set a limit on builds and buildoutputs search

This patch adds a limit statement for Postgresql queries on builds and buildsoutputs tables.

Created by  Antoine Eiche  on June 19, 2019
A5WCCKBZUQLCNW5FYRMEI2E5C4YPYWY4OX77IT5DRSNZ5NNOCGUQC
Change contents