Parse stops after routes and trips.

Fixes issue where database trigger to find routes served by stop finds no served routes.

Also makes database trigger statement-level rather than row-level, which will probably be necessary for scenarios.

Closes #313.