Restructure of the task to share the code between mentions and DMs.
Modify one of the indexes on the appointments table.
Add #deleteevent implementation and some improvements on code structure.