Actually use gevent_psycopg2
Port some more behaviours