Updated deprecated Mysql to PDO