* changes: NoteDbChangeState: Add enum to indicate change's primary storage NoteDbChangeState: Refactor to move ref state into nested class