docs: def get_pg_connection(host, user, port, password, database, ssl={}):
      """ PostgreSQL connection """
  
      return psycopg2.connect(host=host,
                              user=user,
                              port=port,
                              password=password,
                              dbname=database,
                              sslmode=ssl.get('sslmode', None),
                              sslcert=ssl.get('sslcert', None),
                              sslkey=ssl.get('sslkey', None),
                              sslrootcert=ssl.get('sslrootcert', None),
                              )