Fixes 801687 - Upgrades bouncer database handling to use PDO. Database tests pass.