input: Write a function to refresh a given table of data in a PostgreSQL database every 5 minutes.
  def refresh_data(host, database, user, password, table_name):
   conn = psycopg2.connect(
   host=host,
   database=database,
   user=user,
   password=password
   )
   
   def refresh():
   cur = conn.cursor()
   query = f'REFRESH TABLE {table_name};'
   cur.execute(query)
   conn.commit()
  
  # run the refresh job every 5 minutes
  schedule.every(5).minutes.do(refresh)
  
  while True:
   schedule.run_pending()
   time.sleep(1)
  
  assert refresh_data("localhost", "db", "user", "password", "TableName") # No output as the function runs indefinitely
  assert refresh_data("localhost", "db", "user", "password", "AnotherTable") # No output as the function runs indefinitely
output: 
  def refresh_data(host, database, user, password, table_name):
      import psycopg2
      import schedule
      import time
      
      conn = psycopg2.connect(
          host=host,
          database=database,
          user=user,
          password=password
      )
      
      def refresh():
          cur = conn.cursor()
          query = f'REFRESH TABLE {table_name};'
          cur.execute(query)
          conn.commit()
  
      # run the refresh job every 5 minutes
      schedule.every(5).minutes.do(refresh)
  
      while True:
          schedule.run_pending()
          time.sleep(1)
  