Fixing bug: Remove group

Remove group wasnt removing group from user.
Corrected the DB query to fix the issue