SQL to add end time to event