Remove core's use of the removed typo'd buildDSRetrivalSQL function