public static int StoreNewQuestion(Question QuestionToStore)
    {
        try {
        String statement = "INSERT INTO QUESTION (QUESTIONTEXT, ISVALIDATED,ISREJECTED,AUTHORID) ";
        statement += String.format("VALUES ('%s', %s, %s, %d)", QuestionToStore.questionText, QuestionToStore.isValidated ? "TRUE" : "FALSE", QuestionToStore.isRejected ? "TRUE" : "FALSE", QuestionToStore.AuthorId);
        int QuestionID = runStatementGetID(statement);
        int i= 1;
        statement = "INSERT INTO QUESTIONANSWER (QUESTIONID, ANSWERID, ANSWERTEXT, ISCORRECT) VALUES"; 
        for(Answer a : QuestionToStore.answers)
        {
            statement += String.format("(%d, %d, '%s', %s),", QuestionID, i, a.answerText, a.isCorrect ? "TRUE" : "FALSE");
            i+=1;
        }
        boolean Success = runStatement(statement.substring(0, statement.length()-1));
        if (Success)
        {
            return QuestionID;
        }
        else
        {
            return 0;
        }
        }
        catch (Exception se)
                {
                    return 0;
                }
    }