public int getNextInt(int colNum){
		int resultInt;
		try{
			if(result.next()){
				//check if colnum is not greater than the returned columns
				if(0 < colNum && colNum <= rsmd.getColumnCount()){
					resultInt = result.getInt(colNum);
					return resultInt;
				}
			}
			return -9999; 
		}
		catch(SQLException e){
			e.printStackTrace();
			return -9999;
		}
	}