DB db = new DB(getLogger(),new File(dbDir,dbName));
dbinfo = new DBInfo(dbName,db,auth,groupT!=null ? groupT.getFirstValue() : null, aliasT!=null ? aliasT.getFirstValue() : null);
storage = storageFactory.getStorage(db);
try {
getLogger().info("Connecting to DB "+dbName);
db.connect();
getLogger().info("Connected to DB "+dbName);
autodbList.put(dbName,dbinfo);
storage.start();
} catch (SQLException ex) {
getLogger().log(Level.SEVERE,"Cannot connect to database "+dbName,ex);