code: public static void main(String[] args) {
  		String dbName;
  		if (args.length == 0) {
  			dbName = DB_NAME;
  		} else {
  			dbName = args[0];
  		}
  		
  		if (!ZooHelper.getDataStoreManager().dbExists(dbName)) {
  			err.println("ERROR Database not found: " + dbName);
  			return;
  		}
  		
  		out.println("Checking database: " + dbName);
  
  		ZooJdoProperties props = new ZooJdoProperties(dbName);
  		PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory(props);
  		PersistenceManager pm = pmf.getPersistenceManager();
  		Session s = (Session) pm.getDataStoreConnection().getNativeConnection();
  		String report = s.getPrimaryNode().checkDb();
  		out.println();
  		out.println("Report");
  		out.println("======");
  
  		out.println(report);
  
  		out.println("======");
  		pm.close();
  		pmf.close();
  		out.println("Checking database done.");
  	}
docs: private static final String DB_NAME = "StackServerFault";