Update document history