try {
//we MUST use admin/admin because the db was just created
db = DbHelper.open( BBConfiguration.getAPPCODE(),"admin", "admin");
DbHelper.setupDb();
info("Initializing session manager");
ISessionTokenProvider stp = SessionTokenProvider.getSessionTokenProvider();
stp.setTimeout(com.baasbox.configuration.Application.SESSION_TOKENS_TIMEOUT.getValueAsInteger()*1000);
}catch (Throwable e){
error("!! Error initializing BaasBox!", e);
error(ExceptionUtils.getFullStackTrace(e));
throw e;
} finally {