Modified flat_routes query to reflect the new db design for stops.