xapian-bridge C port

endlessm/eos-sdk#2463
Consider a clearer name, such as `create_db_and_assert_ok()` if that's indeed what this function is meant to do.