public void insertQuestion(Question q) {
		long specificID;
		switch (q.type) {
		case QUESTION_RESPONSE:
			specificID = insertQuestionResponseQuestion(q);
			break;
		case FILL_IN:
			specificID = insertFillInQuestion(q);
			break;
		case MULTIPLE_CHOICE:
			specificID = insertMultipleChoiceQuestion((MultipleChoiceQuestion)q);
			break;
		case PICTURE_RESPONSE:
			specificID = insertPictureResponseQuestion(q);
			break;
		default:
			specificID = -1;
		}
		if (specificID != -1) {
			DBConnection connection = DBConnection.sharedInstance();
			
			int id;
			try {
				id = connection.insert("INSERT INTO questions (quizID, question_type, specific_questionID, order_index) VALUES " +
											"('" + q.getQuizID() + "', '" + q.getTypeInt() + "', '" + specificID + "', '" + q.getOrderIndex() + "')");
				q.setId(id);
				for(String answer : q.getCorrectAnswers()) {
					connection.insert("INSERT INTO answers (questionID, answer) VALUES ('" + id + "', '" + answer + "')");
				}
			} catch (Exception e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}