SQLiteStatement stmt = null;
try {
db = WikiDumpPrepareSQLiteForScalarisHandler.openDB(dbFileName, true);
SiteInfo siteInfo = readSiteInfo(db);
MyParsingWikiModel wikiModel = new MyParsingWikiModel("", "", new MyNamespace(siteInfo));
stmt = db
.prepare("SELECT page.title, tpl.title FROM " +
"templates INNER JOIN pages AS page ON templates.title == page.id " +
"INNER JOIN pages AS tpl ON templates.template == tpl.id " +
"WHERE page.title LIKE '" + wikiModel.normalisePageTitle(wikiModel.getTemplateNamespace() + ":") + "%';");
while (stmt.step()) {