Add int in front of user_id
Rename method for user groups
Precise comments
Use sql escape
Rename condition - use plural form