Sql updating a table with values from another table