started to move some database logic outside of quiz.java and quizmanager.java