ownsql: Implement the transaction functions.