Replace #distinct with #group for compatibility with SQLite

See
https://github.com/jeremyevans/sequel/commit/743bfb1059a7568696a971d1a07021364e5d6d0d