cleanup events after some configurable days, to avoid growing overhead when viewing the history