last change fixing db deleting old events