use views in SegmentDiscoDB when possible