Added method to execute SQL commands wrapping it in a transaction.
More tests.