Add groups to SQL script