combine arrivals and departures tables into trips table via single table inheritance