/**
 * Implements hook_taxonomy_term_insert().
 */
function {{ machine_name }}_taxonomy_term_insert($term) {
  db_insert('mytable')
    ->fields(array(
      'tid' => $term->tid,
      'foo' => $term->foo,
    ))
    ->execute();
}
