updates code to use new friend_notes structure and adds script to migrate notes collection