make peewee gevent friendly. fix errors in transaction handling on Postgres. remove remnants of mysql and sqlite support