Converted database to PDO