Added support for nested transactions in PostgreSQL