update to ensure database persistence