input: Write a function to create a Python script that refreshes a given table of data in a PostgreSQL database every 5 minutes. The function should establish a connection to the database, define a function to execute the refresh query, and schedule the execution of the refresh function every 5 minutes using the `schedule` library.
  assert refresh_table()
  assert refresh_table()
  assert refresh_table()
  assert refresh_table()
  assert refresh_table()
output: 
  def refresh_table():
      import psycopg2
      import schedule
      import time
  
      def refresh_query():
          conn = psycopg2.connect(
              dbname="your_dbname",
              user="your_username",
              password="your_password",
              host="your_host",
              port="your_port"
          )
          cur = conn.cursor()
          cur.execute("REFRESH MATERIALIZED VIEW your_table;")
          conn.commit()
          cur.close()
          conn.close()
  
      schedule.every(5).minutes.do(refresh_query)
  
      while True:
          schedule.run_pending()
          time.sleep(1)
  