title: postgresql syntax error INSERT via python
body: <p>I'm trying to run a program to insert data from a CSV. file into a PostgreSQL database.</p>
  
  <pre><code>db.execute("INSERT INTO books (isbn, title, author, year) VALUES (:isbn, :title, :author, :year)",
              {"isbn": isbn, "title": title, "author": author, "year": year})
  </code></pre>
  
  <p>The code crashed and returned this:</p>
  
  <pre><code>sqlalchemy.exc.DataError: (psycopg2.errors.InvalidTextRepresentation)
     invalid input syntax for type integer: "isbn" LINE 1: ...RT INTO
     books (isbn, title, author, year) VALUES ('isbn', 't...
                                                                  ^
  
     [SQL: INSERT INTO books (isbn, title, author, year) VALUES (%(isbn)s,
     %(title)s, %(author)s, %(year)s)] [parameters: {'isbn': 'isbn',
     'title': 'title', 'author': 'author', 'year': 'year'}] (Background on
     this error at: http://sqlalche.me/e/9h9h) 
  </code></pre>
  
  <p>I took the syntax from the import.py source code and modified the values.</p>
  
  <p>The format of my books table is:</p>
  
  <ul>
  <li>id SERIAL PRIMARY KEY</li>
  <li>isbn INTEGER PRIMARY KEY</li>
  <li>title VARCHAR NOT NULL</li>
  <li>author VARCHAR NOT NULL</li>
  <li>year INTEGER NOT NULL</li>
  </ul>
  
  <p>Can anyone tell me what is wrong with my syntax?</p>