Clarified why one must not catch database errors inside atomic.
Fixed #20877 -- added a performance optimization guide