Utilities for transactions in the database API.