Added logic to save marked dates for every event based on calendar id