Major update for PDO support
last 2 updates included many improvements for supporting PDO