I have the below function for generating an SQL query dynamically to insert a pandas dataframe in postgres using psycopg2. I\'ll be using this function to insert multiple da