stopped reassigning key in update sql