cleanPDO throws if config contains bad data
small code cleanup
Use preg_split instead of substring