Fix file sql