added various tests for completeness, migration to flatten the tables by adding the time that a train departs the origin to the basic schedules table