add persistence for chats and notifications