Update persistence.ts