Improve database user group: check the groups