C wrapper for rocksdb