[PDO/PDO5] Add: config into port setting
[PDO/PDO5] Fix: Count method, check connection