database update and  sql file