public boolean answerQuestion(Player player, String applicant, String answer) throws SQLException {

        String database = plugin.getConfig().getString("mysql.database");
        int numberOfQuestions = plugin.getConfig().getList("quiz-questions").size();

        String getQuestionNumber = "SELECT * FROM `" + database + "`.`tracker` WHERE `applicant` = '" + applicant + "'";
        ResultSet result = plugin.dbManageMySQL.query(getQuestionNumber);

        result.first();

        String qNumberString = result.getString("status");

        if (qNumberString.equalsIgnoreCase("TestCompleted")) {
            player.sendMessage(plugin.prefix + ChatColor.RED + "You have already completed the test!");
            return false;
        }

        if (qNumberString.equalsIgnoreCase("Applied")) {
            player.sendMessage(plugin.prefix + ChatColor.RED + "You have applied but have not started the test!");
            return false;
        }

        int qNumber = Integer.parseInt(qNumberString.replaceAll("[\\D]", ""));

        String query = "UPDATE `" + database + "`.`quizzes` SET `question" + qNumber + "answer` = '" + answer + "' WHERE `applicant` = '" + applicant + "'";
        plugin.dbManageMySQL.query(query);

        if ((qNumber + 1) <= numberOfQuestions) {
            String updateStatus = "UPDATE `" + database + "`.`tracker` SET `status` = 'Q" + (qNumber + 1) + "' WHERE `applicant` = '" + applicant + "'";
            plugin.dbManageMySQL.query(updateStatus);
            player.sendMessage(plugin.prefix + ChatColor.GREEN + "Your answer has been submitted!");

            String nextQuestion = (String) plugin.getConfig().getList("quiz-questions").get(qNumber);

            player.sendMessage(plugin.prefix + ChatColor.GOLD + "Q" + (qNumber + 1) + " - " + nextQuestion);

        } else if (qNumber == numberOfQuestions) {

            DateFormat timeFormat = new SimpleDateFormat("HH:mm:ss");
            DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
            Date date = new Date();
            String textTime = timeFormat.format(date);
            String textDate = dateFormat.format(date);

            String updateTestDateTime = "UPDATE `" + database + "`.`quizzes` SET `testdate` = '" + textDate + "', `testtime` = '" + textTime + "' WHERE `applicant` = '" + applicant + "'";
            String updateStatus = "UPDATE `" + database + "`.`tracker` SET `status` = 'TestCompleted' WHERE `applicant` = '" + applicant + "'";
            plugin.dbManageMySQL.query(updateTestDateTime);
            plugin.dbManageMySQL.query(updateStatus);
            player.sendMessage(plugin.prefix + ChatColor.GREEN + "You have completed the test!");
            plugin.getServer().broadcastMessage(plugin.prefix + ChatColor.GREEN + "A new member test has been completed! - Do /utest latest tests to view");
        }
        return true;
    }