some changes in NotesDatabase