Fixes bug where event's "schedule_last" is incorrectly set to the last event date update/inserted. Add units test
Please make PRs on develop branch