Added strong guarantee to DB transactions and retry on Begin Immediate Transaction.
Need cleanup (wip)