Build new sql file