title: Error while using "pd_writer" to write data to snowflake - 'not all arguments converted during string formatting'
body: <p>Getting this error while calling the &quot;pd_writer&quot; method:</p>
  <blockquote>
  <p>DatabaseError(&quot;Execution failed on sql 'SELECT name FROM sqlite_master WHERE type='table' AND name=?;': not all arguments converted during string formatting&quot;,)</p>
  </blockquote>
  <pre><code>def sf_To_df(self):
      sf_data = self.salesForceAuth.query_all(self.queryColumns)
      sf_data=dict(sf_data)
      try:            
          cursor=snowflake.connector.connect(user=snowflake_user_path,      ​
              paccount=snowflake_account,
              warehouse=snowflake_warehouse,
              database=snowflake_database,
              schema=snowflake_schema);
  
     ​for dictKey1, dictValue1 in sf_data.items():
         ​if dictKey1 == &quot;records&quot;:
             ​sf_Df = pandas.DataFrame.from_records(dictValue1)
             ​**sf_Df.to_sql(dictKey1, cursor, index=False, method=pd_writer)**
     ​
  except Exception as e:
     ​typ, obj, tb = sys.exc_info()
     ​print(&quot;exception while reading the key value: &quot;, e.__repr__(),tb.tb_lineno)
  </code></pre>