private static void mainWithQuery(ResultAnalyserRunner analyser,
String sqlQuery) throws Exception {
if (sqlQuery.isEmpty()) {
DatabaseHelper db = new DatabaseHelper();
db.printTableDetails(null);
db.shutdown();
return;
}
analyser.initMemoryDb();
analyser.runWithQuery(sqlQuery);
}