Add column_list method to BaseModel and use it in group clausules

Such grupping is required by postgres 8.X