LevelDB/Levelup immutable history and database snapshotting based on ideas in datomic