Added existing code
Here's what I had already written. Creating, deleting and searching notes should work. Writing the db to file is untested.