handle db concurrency exceptions