Changes to Sql