errors are logged to logfile.err if logfile configured; fixed threaded sql, now using AUTOCOMMIT to close connections after .execute; skip/log failed sql batches; attempte reconnect if connection/cursor closes/timesout; cache sql connections and reuse when possible; update psycopg2 dep to >=2.5.1 (fixes a threading coredump bug)