Basic mongo C API usage