fail("SQL Exception: "+ExceptionUtil.getStackTrace(ex));
}
DatabaseWriter db = new DatabaseWriter(cluster);
for(int i=0;i<tables.length;i++) {
String query = "select [avg("+tables[i]+")] from ["+tables[i]+"]";
Macro mp = new Macro(current,query);
query = mp.toString();
try {
ResultSet rs = db.query(query);
ResultSetMetaData rsmd = rs.getMetaData();
int numberOfColumns = rsmd.getColumnCount();
while(rs.next()) {