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

...ields in the select

Fixes #12