tables.close();
dbs.close(); mysql.close();
	public void addToTable(byte[] image, String data) {		try {				ArrayList databases = JDBMain.getConfiguredDatabases();			for (int i = 0; i < databases.size(); i++) {				DataSourceConfig dsc = (DataSourceConfig )databases.get(i);				Class.forName(dsc.getDriver());				//Connection mysql = DriverManager.getConnection(JDBMain.DBURL, JDBMain.DBUSER, JDBMain.DBPASSWORD);				Connection mysql = DriverManager.getConnection(dsc.getUrl(), dsc.getUserid(), dsc.getPassword());				DatabaseMetaData dbmeta = mysql.getMetaData();				System.out.println("Runnig on : " + dbmeta.getDatabaseProductName());				ResultSet dbs = dbmeta.getSchemas();								TreeIter databaseconfig = ls.appendRow(null);							ls.setValue(databaseconfig, ColData, dsc.getAlias());				while (dbs.next()) {					TreeIter dbrow = ls.appendRow(databaseconfig);					ls.setValue(dbrow, ColData, dbs.getString(1));					TreeIter tablesrow;					String[] types = { "TABLE" };					ResultSet tables = dbmeta.getTables("", dbs.getString(1), "%", types);					while (tables.next()) {						tablesrow = ls.appendRow(dbrow);						System.out.println(tables.getString(3));						ls.setValue(tablesrow, ColData, tables.getString(3));					}					tables.close();				}				dbs.close();				mysql.close();			}			// if(!ran) {			// TreeIter dbrow = ls.appendRow(null);			// TreeIter tablesrow;			//			// String[] types = { "TABLE" };			// ResultSet tables = dbmeta.getTables("", "ECLUB2", "%", types);			// while (tables.next()) {			// tablesrow = ls.appendRow(dbrow);			// System.out.println(tables.getString(3));			// ls.setValue(tablesrow, ColData, tables.getString(3));			// }			// tables.close();			// }					list.showAll();		} catch (ClassNotFoundException e) {			e.printStackTrace();		} catch (SQLException e) {			e.printStackTrace();		}	}