extracted the first half of select() as SQLProcessor::setupForSelect() to be able to use from runForExists().