Fixed check for group existence in DB when call createGroup()