SQLiteConnection db = null;
try {
db = WikiDumpPrepareSQLiteForScalarisHandler.openDB(dbFileName, true);
db.exec("CREATE TEMPORARY TABLE currentPages(id INTEGER PRIMARY KEY ASC);");
SiteInfo siteInfo = readSiteInfo(db);
MyNamespace namespace = new MyNamespace(siteInfo);
ArrayList<String> allowedCats = new ArrayList<String>(allowedCats0.size());
MyWikiModel.normalisePageTitles(allowedCats0, namespace, allowedCats);
Set<String> allowedCatsFull = getSubCategories(allowedCats0, allowedCats, db,
templateTree, includeTree, referenceTree, msgOut, namespace);