Deleted old sql and added new sql