input: Write a function to create a Python script that refreshes a given table of data in a PostgreSQL database every 5 minutes.
  assert refresh_data_table({"host": "localhost", "database": "db", "user": "user", "password": "password", "table": "TableName"}) == None
output: def refresh_data_table(config):
      import psycopg2
      import time
      conn = psycopg2.connect(**config)
      cursor = conn.cursor()
      while True:
          cursor.execute(f"REFRESH MATERIALIZED VIEW {config['table']};")
          conn.commit()
          time.sleep(300)