fixing PostgreSQL on heroku. try including the id in the group filter