private void queryDb(ActionEvent event) {
		String query = hqlQuery.getText();

		String[] meta;
		java.util.List<String[]> data = new ArrayList<String[]>();

		try {
			SQLResultInterface res = mdi.executeHqlQuery(query, c_deref.isSelected());

			if (res == null)
				return;
			List<String> header = res.getHeader();
			if (header == null)
				meta = new String[]{"Fehler"};
			else {
				meta = new String[header.size()];
				for (int i = 0; i < header.size(); i++)
					meta[i] = header.get(i);
			}

			String[] row;
			while((row = res.getNextRow())!=null){
				data.add(row);
			}

			if (data.size() == 0)
				data.add(new String[]{"Leerer Tabellenkoerper"});

			this.table.fillTable(meta, data);
		} catch (Exception e) {
			e.printStackTrace(System.err);
			data.clear();
			data.add(new String[]{e.toString()});
			table.fillTable(new String[]{"Fehler"}, data);
		}
	}