Add a leveldb option function in io.hpp/cpp