Fixes WorkerStattusController for postgresql

postgres needs every column used in a group by query to be aggregated
Merge pull request #609 from dsander/fix-worker-status

Fixes WorkerStatusController for postgresql