forking historical link database on top of leveldb