Merge courses into a single table; add departments and geneds as tables.