Changed DB Access Pattern to use PDO