Utility function: get the list of vocabularies directly from the database.
This function is valid for a database schema version 7002.
function _update_7002_taxonomy_get_vocabularies() {
return db_query('SELECT v.* FROM {taxonomy_vocabulary} v ORDER BY v.weight, v.name')
->fetchAllAssoc('vid', PDO::FETCH_OBJ);
}