Update to PDO mysql

Migration to PDO MYSLQ