input: Write a function to refresh a given table of data in a PostgreSQL database every 5 minutes. The function should take no input and should run indefinitely. It should connect to the database using the provided credentials and refresh a specified table every 5 minutes.
  
  import psycopg2
  from datetime import datetime, timedelta
  import schedule
  import time
  
  def refresh_table():
   conn = psycopg2.connect(
   host="localhost", 
   database="db", 
   user="user", 
   password="password"
   )
   cur = conn.cursor()
   query = 'REFRESH TABLE "TableName";'
   cur.execute(query)
   conn.commit()
   conn.close()
  
  # run the refresh_table job every 5 minutes
  schedule.every(5).minutes.do(refresh_table)
  
  while True:
   schedule.run_pending()
   time.sleep(1)
  
  assert refresh_table() == None
  assert type(refresh_table()) == None
output: def refresh_table():
      conn = psycopg2.connect(
          host="localhost", 
          database="db", 
          user="user", 
          password="password"
      )
      cur = conn.cursor()
      query = 'REFRESH TABLE "TableName";'
      cur.execute(query)
      conn.commit()
      conn.close()