input: 
  def refresh_database(query: str) -> None:
      """ Refresh a given table of data in a PostgreSQL database every 5 minutes.
      >>> refresh_database('REFRESH TABLE "TableName";')
      # The query is executed every 5 minutes in a loop
      """
  
output:     
      import time
      import psycopg2
  
      def execute_query(query):
          conn = psycopg2.connect(database="your_db", user="your_user", password="your_password", host="your_host", port="your_port")
          cur = conn.cursor()
          cur.execute(query)
          conn.commit()
          cur.close()
          conn.close()
  
      while True:
          execute_query(query)
          time.sleep(300)
  