fix SQL
add trips_calendars_ics_url function per issue #38