Fix RemoveNotes migration

* delete all stream items referencing notes
* recreate the notes table and references when going down