Store was_on_route to db