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, execute the refresh query, and schedule the refresh operation to run every 5 minutes. If the script runs successfully, it should keep refreshing the data at the specified interval.
  assert refresh_data_table() == "Script running, refreshing data every 5 minutes."
  assert refresh_data_table()  
  assert refresh_data_table() == None
  assert refresh_data_table()
output: 
  def refresh_data_table():
      import psycopg2
      import time
      import threading
  
      def refresh_table():
          conn = psycopg2.connect(database="your_db", user="your_user", 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()
  
      def schedule_refresh():
          while True:
              refresh_table()
              time.sleep(300)
  
      threading.Thread(target=schedule_refresh).start()
      return "Script running, refreshing data every 5 minutes."
  