debug ajax + script SQL