Fixed group generation

Group generation for users will now generate if the database is empty