Added dynamic database loading for itinerary viewing page.