code: public void connect() throws DBException {
          try {
              LOGGER.debug("Initializing MongoDB client");
              mongoClient = new MongoClient(this.host, this.port);
          } catch (UnknownHostException e) {
              throw new DBException(e.toString());
  
          }
      }
docs: Connect to MongoDB Host.
  
  @throws DBException