addition of new sql code