Add a C API for access to the same database.

