added tag_hierarchy to flashcard many-to-many table, put tag_hierarchy in json on page