sql replace multiple values from another table