Decrease the number of SQL queries to list the groups
Decrease the number of SQL queries to list the groups

Change-Id: I6bd43baf827db604b0c74c43bc82f94e3176cb55

Linaro/lava-server,Linaro/lava-server,Linaro/lava-server,Linaro/lava-server