buildrequest collapse

 - TODO:
   - update master/docs/manual/customization.rst

First iteration of the project.
I plan to update customization.rst.
I think this function is better suited in the db API, so that you can write a proper sql query to get this info efficiently