Trying Revert "Revert "PDO not working""

This reverts commit 1fc58c9fda1a9091ee14a2970f502a8f0b5932b1.