ClearGroup converted to QueryDatabase
GetGroupID converted to QueryDatabase