getNotesCategories from mongodb