persistent chat storage with MongoDB complete