* Extend transaction block.
* Catch SQLException exception.
Merge pull request #2 from metdos/master

Fixed two minor bugs that relate to rolling back transactions upon errors.