public void iniDbData(){
		
		dbData = new XMLwriter();
		try {
			if(dbData.connectParse())
			System.out.println("dbdata found! location: " + dbData.getPort() + " user: " + dbData.getUser() + " pass: " + dbData.getPass());
			else {
				System.out.println("connection.xml file not found. Opening Conection Dialog");
				ConnectionPopup popup = new ConnectionPopup(this, dbData);
				popup.setVisible(true);
			}
		} catch (FileNotFoundException e) {
			
			e.printStackTrace();
			
		} catch (XPathExpressionException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (SAXException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			
			e.printStackTrace();
		} catch (ParserConfigurationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		db = new DbConnection(dbData);
		model.setData(db.getCourseData());
		model.fireTableDataChanged();
		sort.iniPanel(this, db);
		
	}