add snapshot support for leveldb, goleveldb, hyperleveldb, rocksdb