code: public int getDatabaseLink() {
  		if(databaseLink < 0) {
  			ServerConfig c = ServerConfig.getInstance();
  	
  			try {
  				boolean[] local = new boolean[1];
  				String dbhost = extractValidHostname(c.dbhost, local);
  				databaseLink = local[0] ? LOCAL : REMOTE;
  				
  				logger.info("Database hostname: " + dbhost + " (local=" + local[0] + ").");
  				
  			} catch (UnknownHostException ex) {
  				logger.warn(ex.getMessage());
  				databaseLink = UNKNOWN;
  			}			
  		}
  		return databaseLink;
  	}
docs: Returns an integer that indicates location type of database server
  linked to the running Doradus-server: {@code LOCAL} if the Doradus-server
  and database-server are hosted on the same machine, {@code REMOTE} if
  they are on the different machines, {@code UNKNOWN} if no IP address for
  the configured hostname of  database-server could be found.
  @return {@code LOCAL}, {@code REMOTE}, or {@code UNKNOWN}