Improve SQL file