changed QuestionDB.updateRating() to include difficulty