Zend db nested transactions

The goal of this PR is to allow nested db transactions, for instance when tou batch a low level method.