enable autocommit for postgres
enable autocommit for postgres

Without this change, db.query() in an interactive session will
leaves the connection as `idle in transaction`; long-running
transactions can cause MVCC bloat.

yhat/db.py,yhat/db.py