Added search functionality for notes, now directly searches the db