Database Savepoints: Transaction Pitfalls to Avoid