modified running_details_controller.rb to reduce the number of db queries while fetching schedule details