try {
List<Object> arg = new LinkedList<Object>();
arg.add(((TextField) args.get(0)).getText());
arg.add(((TextField) args.get(1)).getText());
query.prepareQuery(arg);
query.doQuery();
query.close();
} catch (SQLException e) {
results.appendText("invalid query\n");
e.printStackTrace();
}