Add getSelect helper function

Patch by Micah Villmow from last year that was reviewed, but never committed
Introduce getSelect usage and use more getSelectCC