Added logging of SQL
Removed MTransaction
Added a block version of the API