Revert "Removing duplication of $pdo instantiating,"

This reverts commit b71aeadf9d2281551b06a1e6985f37a5b91986f4.
Reverting commit b71aeadf9d2281551b06a1e6985f37a5b91986f4