input: from typing import List
  
  def refresh_table_periodic(database_config: List[str]) -> None:
      """Refreshes a given table of data in a PostgreSQL database every 5 minutes.
      It takes a list of database configuration details in the order: [host, database, user, password].
      Example:
      refresh_table_periodic(["localhost", "db", "user", "password"])
      """
      import psycopg2
      from datetime import datetime, timedelta
      import schedule
      import time
  
      conn = psycopg2.connect(
          host=database_config[0],
          database=database_config[1],
          user=database_config[2],
          password=database_config[3]
      )
  
      def refresh_data():
          cur = conn.cursor()
          query = 'REFRESH TABLE "TableName";'
          cur.execute(query)
          conn.commit()
  
      # run the refresh_data job every 5 minutes
      schedule.every(5).minutes.do(refresh_data)
  
      while True:
          schedule.run_pending()
          time.sleep(1)
output:     conn.close()