Use a customized get_runs_to_build()

To get the jobs instead of filtering on the builder side.

This is much faster and more scalable becuase avoid transmitting
the whole DB.