put user_group_db in separate module