public static int getAirfieldDistanceUnit() throws ClassNotFoundException {
        int weightUnit = 0;
        try{
            //Class derbyClass = RMIClassLoader.loadClass("lib/", "derby.jar");
            Class.forName(driverName);
            Class.forName(clientDriverName);
        }catch(java.lang.ClassNotFoundException e) {
            throw e;
        }
        
        try (Connection connect = DriverManager.getConnection(databaseConnectionName)) {
            Statement stmt = connect.createStatement();
            ResultSet thePilots = stmt.executeQuery("SELECT distance_unit "
                + "FROM AirfieldUnits "
                + "WHERE unit_set = 0");
            while(thePilots.next()) {
                
                try {
                    weightUnit = Integer.parseInt(thePilots.getString(1));
                }catch(NumberFormatException e) {
                    //TODO What happens when the Database sends back invalid data
                    JOptionPane.showMessageDialog(null, "Number Format Exception in reading from DB");
                }
            }
            thePilots.close();
            stmt.close();
        }catch(SQLException e) {
            JOptionPane.showMessageDialog(null, e.getMessage());
            return -1;            
        }
        return weightUnit;
    }