//add question to the database
int newQuestionID = myTools.dataEntry(questionObj);
//set up answers
Answer correct= QuestionFactory.createAnswer(correctAnswer, 1, newQuestionID, true);
Answer wrong1 = QuestionFactory.createAnswer(answer2, 2, newQuestionID, false);
Answer wrong2 = QuestionFactory.createAnswer(answer3, 3, newQuestionID, false);
Answer wrong3 = QuestionFactory.createAnswer(answer4, 4, newQuestionID, false);
// Now adding the answers to the database
int correctAnswerId = myTools.dataEntry(correct);
int answer2Id = myTools.dataEntry(wrong1);