changed more stuff
made new QuizHistory constructor to update the db