Delete tags if no notes are referenced by the tag
When a tag is unattached from a note, and that makes no notes referenced by the tag, delete the tag from the database.
When a tag is unattached from a note, and that makes no notes referenced by the tag, delete the tag from the database.