Fixes WorkerStatusController for postgresql

postgres needs every column used in a group by query to be aggregated