Allow disabling transactions
Adapting for MySQL