Convert notmuch_database_t to start using talloc.