How to simulate database failure
stackoverflow.com