Keep  closer to other methods that touch @transaction

Looking at the transaction code to refactor this a bit.

Bringing `open_transactions` method to the right place, so its close to the other methods that touch `@ transaction`

review @chancancode @rafaelfranca