Group by name

Resolves #272, allows Dashboard to run on Postgresql 8.4.