Added check to update an existing trip or add a new one
New past trip profiles are added to the trip list