Managing SQL Database Transactions and Concurrency