Fix function name

Fixes brendo/#33
Merge pull request #34 from hananils/integration

Stop using the deprecated buildDSRetrivalSQL function. Fixes #33