corrected sql file