input: from typing import List
  
  
  def refresh_data_in_database(table_name: str) -> None:
      """ Write a Python script to refresh a given table of data in a PostgreSQL database 
      every 5 minutes.
      >>> refresh_data_in_database('TableName')
      Enter a continuous loop that refreshes the table 'TableName' every 5 minutes.
      """
output:     
      import time
      import psycopg2
  
      while True:
          conn = psycopg2.connect(database="your_database", user="your_user", password="your_password", host="your_host", port="your_port")
          cur = conn.cursor()
          cur.execute(f"REFRESH MATERIALIZED VIEW {table_name};")
          conn.commit()
          cur.close()
          conn.close()
          time.sleep(300)
  