add database persistence example