code: async function getConnection(url, opts = {}) {
      try {
          const dbName = opts.databaseName;
          if (!dbName || dbName === '')
              throw boom.badImplementation('jollof-data-arangodb: databaseName config is required', { url, opts })
  
          const key = url + dbName;
  
          //Get connection
          let connection;
          if (connPool[key]) {
              connection = connPool[key];
          } else {
              connection = new Database(opts)
              connection.useBasicAuth(opts.username, opts.password)
              connPool[key] = connection;
          }
  
          //Now ensure database exists
          const dbNames = await connection.listDatabases();
          if (dbNames.indexOf(dbName) > -1) {
              //our db exists. use it.
              connection.useDatabase(dbName)
          } else {
              //our db does not exist. Attempting to create it
              await connection.createDatabase(dbName)
              connection.useDatabase(dbName)
          }
  
          return connection;
      } catch (e) {
          console.error(`There was an issue creating/ensuring connection to DB: ${url} with opts: ${util.inspect(opts)}`)
          throw new Error(e);
      }
  }
docs: A factory of different ArangoDB connections based on URL
  @param url
  @returns {Promise<*>}