just pre-check the data directory before initializing the keyvalue db. in leveldb and rocksdb implentations, these two functions do some repetive work, maybe not for other keyvalue db.