save complete document on update