Refactored storage to use note_key instead of id as primary key. Added view_count to storage.