transaction callback added

Added transaction callback shortcut . Related with [this](https://github.com/yiisoft/yii2/issues/3384) issue 
@cebe it's not. It is replacing db exception with global one for the entire file. It's not desired since in `open()` we're using db exception.