Build with RocksDB or LevelDB.