updated schema, putting groups to DB