Extracted retrievePicksFor sql statements into a separate sql module