Drupal 7 - do something in a taxonomy hook after the database has been updated
<p>I would like to do something after a taxonomy item has been inserted or updated.  I tried using hook_taxonomy_term_update and hook_taxonomy_term_insert. However, anything you put here will execute <em>before</em> the database is updated.  How can I do something <em>after</em> the database has been updated?</p>

<p>Specifically, what I'm doing is updating a text file that lists all the taxonomy terms.  I pull this information from the database, so the db needs to be up to date before I write to the text file.</p>