Move all exam related functions in DB.py out to their appropriate models