@SuppressWarnings({ "rawtypes", "unchecked" })
	private void rebuildModel() throws SQLException {
		state("reload model");
		firstLoad();
		Vector columnNames = new Vector();
		Vector data = new Vector();
		int columns = rsltMetaData.getColumnCount();
		for (int i = 1; i <= columns; i++) {
			columnNames.addElement(rsltMetaData.getColumnName(i));
		}
		rslt.beforeFirst();
		while (rslt.next()) {
			Vector row = new Vector(columns);
			for (int i = 1; i <= columns; i++) {
				row.addElement(rslt.getObject(i));
			}
			data.addElement(row);
		}
		rslt.last();
		insertrow = rslt.getRow() + 1;
		data.addElement(new Vector(columns));
		// System.out.println(data.toString()+columnNames.toString());
		tableModel.setDataVector(data, columnNames);
		table.getSelectionModel().setSelectionInterval(0, lastSelectedRow);
	}