function getParametersFromHosts(hosts, database) {
  const [{ host, port }] = hosts

  return new DatastoreParameters({
    host,
    port_path_or_id: port,
    database_name: database
  })
}
Extracts the database parameters from the first host.

@param {Array} hosts mongodb connected hosts
@param {string} database name of database
@returns {object} db params