Function to pull the new userid for a user and update any records containing the old userid