Rewrite History DB Helper / Adapter
Use byte array instead of Document in history
Remove unneeded Document clone
More logging