Updating multiple tables in sql server