added C API
renamed c++ db handler