added rollback and fixed problem with do_connect (only pg).