Modified Teacher to use DatabaseInteraction