Get group type from database
Start thinking about testing database stuff