reworked the curriculum inventory db schema, models, queries, controller, exporter logic.