correction script SQL