Implemented functionality for persisting Notes.