Fix bug in dashboard database query.
Improve dash view so that it shows the users in each group.