title: Error on insertion of data after successful opening of connection
body: <p>I'm inserting data from mysql table to postgres table and my code is:</p>
  
  <pre><code>from sqlalchemy import create_engine, MetaData, Table
  
  from sqlalchemy.orm import mapper, sessionmaker
  
  import psycopg2
  
  class TestTable(object):
  
      pass
  
  class StoreTV(object):
  
      pass
  
  if __name__ == "__main__":
  
      engine = create_engine('mysql://root@localhost:3306/irt', echo=False)
  
      Session = sessionmaker(bind=engine)
      session = Session()
  
      metadata = MetaData(engine)
      test_table = Table('test_1', metadata, autoload=True)
  
      store_tv_table = Table('roku_store', metadata, autoload=True)
  
      mapper(TestTable, test_table)
      mapper(StoreTV, store_tv_table)
  
      res = session.query(TestTable).all()
      print res[1].test_1col
  
      tv_list = session.query(StoreTV).all()
  
      for tv in tv_list:
          tv_data = dict()
          tv_data = {
              'title': tv.name,
              'email': tv.business_email
          }
          print tv_data
  
  
          conn = psycopg2.connect(database="db", user="user", password="pass", host="localhost", port="5432")
          print "Opened database successfully"
          cur = conn.cursor()
          values = cur.execute("Select * FROM iris_store")
          print values
          cur.execute("INSERT INTO iris_store(title, business_email) VALUES ('title':tv_data[title], 'business_email':tv_data[business_email])")
          print "Record created successfully"
  
          conn.commit()
          conn.close()
  </code></pre>
  
  <p>And I'm not able to get data from postgres data and insert into postgres table 
  while I'm successful to get data from Mysql table</p>
  
  <p>ERROR is:</p>
  
  <blockquote>
    <p>something</p>
    
    <p>{'email': 'name@example.com', 'title': "Some Name"}</p>
    
    <p>Opened database successfully</p>
    
    <p>None</p>
    
    <p>Traceback (most recent call last):</p>
    
    <p>File "/home/Desktop/porting.py", line 49, in 
       cur.execute("INSERT INTO iris_store(title, business_email) VALUES ('title':tv_data[title], 'business_email':tv_data[business_email])")</p>
    
    <p>psycopg2.ProgrammingError: syntax error at or near ":"
    LINE 1: ... iris_store(title, business_email) VALUES ('title':tv_data[t...
                                                                ^</p>
  </blockquote>