this is a little to database centric. Technically a transaction has nothing to do with a DB, perhaps steal from wikipedia

> Transaction processing is designed to maintain a systems Integrity (typically a database or some modern filesystems) in a known, consistent state, by ensuring that interdependent operations on the system are either all completed successfully or all canceled successfully.

The lead on with "in this example we will consider a database"??