Simplified "Ensuring the database persistence" example