Sql edited