title: Error when committing
body: <p>I am setting up a simple application using flask and psycopg2. When I try to do a simple database update, I get an "Internal server error", throwing in some logging, it is clear that</p>
  
  <pre><code>@app.route('/deactivate/&lt;pid&gt;')
  def deactivate(pid):
   try:
      sql='update person set active = \'false\' where id = %s'
      logger.debug(LOGID+' running '+sql)
      cur.execute(sql,[pid])
      logger.debug(LOGID+' ran '+sql)
      cur.commit()
      logger.debug(LOGID+' commited '+sql)
  </code></pre>
  
  <p>Throwing in some logging, it is clear that it fail in "commit" - I am not able to find any explanation in any logs, neither from postgres nor apache. The updated value will show up in any call within the same application, so the update obiously went well, but if I try to query from anything else, the update if (of cource) not there. Any clue on what goes wrong?</p>