updating database sql file