Finish DBQueryPIpe.