Fix multi-db problem.
Fix multi-db problem.

Centralize the opening of the database so that we don't end up opening both peewee.db and database.db.
memorial-ece/teaching-equivalencies,memorial-ece/teaching-equivalencies,memorial-ece/teaching-equivalencies