updated queries according to schema changes.
replaced join table name in deleteGroupWithGroupId().