Add support for logical deletion of diary entries and comments.