Fixed database model for groups