adding trip update code with uniqueness check that includes appointment_time, per discussion