Sqlite3 gem group by development and test environment