Bug fix for multisegment dqsegdb query
This PR fixes a critical bug in DataQualityFlag.query_dqsegdb
where the results for a multi-segment query would only return those for the final segment.
This PR includes a simple unit test to protect against regression.