Added the cb_database_r struct for working with the extra data used for search.