Added updating of note in local db in addition to updating on the API. Added sorting options with a spinner.