Stay in fixes

Fixes SQL query error.
Fixes stay_in's where vehicle has more than 120 seconds between two interline sections.