Simplified "Ensuring the database persistence" example

corrections