port leveldb database to KMFv4