Sql updating multiple rows based on a select statement