updates sql file