System.setProperty("chaidb.home", dbHome);
PropertyConfigurator.configure(Database.class.getResource("/org/chaidb/log4j.properties"));
if (db == null) {
boolean needRecovery = DBState.getInstance().getNeedRecovery();
recoverWhenServerStart(needRecovery);
db = new Db();
}
kc = new KernelContext();
opened = true;
}