read for rocksdb