How do you manage database concurrency and prevent race conditions when processing transactions for Wonga?