Cleanup and typo
Extracted cleanPDO to its own file

Code cleanup, I moved cleanPDO to its own file to cleanup PDOI file
Code cleanup, also, select object is no longer by ref