update sql file for tables