Fix SQLAlchemy error, the group_by clause requires the list of all the fields in the select

Fixes #12
Merge pull request #14 from fedora-infra/fix_sa_error

Fix SQLAlchemy error, the group_by clause requires the list of all the f...