public Boolean getFactMiddleFlag(int id)
    {
        boolean result= false;
        try{
            stat.setQueryTimeout(30);
            ResultSet rs = stat.executeQuery("SELECT * From Fact Where Id ="+id+";");
           result = (rs.getInt("AnswerFlag") == -1) ? true : false ;
        }catch(Exception e){
            System.out.println("Getting Fact Middle Flag Failed");
            System.out.println(e.getMessage());
        }
        return result;
    }