Abstract questions a bit more, move code out of quizdb into utilities here