Update routes and sensors table with sensor_id.