sophia-gh-577: refactor txn engine statements