title: python dictionaries and map functions
body: <p>Am trying to insert a query into redshift via python code. It is throwing the below error. </p>
  
  <p>workflow_dev=# insert into onyx.result_table (uid, ruleid, date, first_query_result, second_query_result, difference, rule_success_or_fail) values ('',1,"2016-11-08 06:56:49.664711",0,0,'',True);
  ERROR:  column "2016-11-08 06:56:49.664711" does not exist in result_table</p>
  
  <p>Below is the table structure: </p>
  
  <p>workflow_dev=# select * from result_table;
   uid | ruleid | date | first_query_result | second_query_result | difference | rule_success_or_fail
  -----+--------+------+--------------------+---------------------+------------+----------------------
  (0 rows)</p>
  
  <p>The colomn is having date field. But even it is throwing the error. Can anyone help on this ? </p>