Fix update statement by looking up by names