Fixed group creation, to work with new sql file.