Reworked transaction handling. Reworked OdbcException.