existing notes are updated

- added code to check for existing notes and update them instead
inserting new ones