Save change of study instance uid till walk.

Previously changed it as soon as it was calculated in anaonymize, but now just set it in the db and let it get changed with the others.