[REF][runbot] Add group by branch and branch_depend into builds

Modify sql for group by branch and branch_depend into builds
Modify qweb view for process this new group by