update document hashes