working sql file