MySQL extension automatic porting to PDO for PHP migration and security improvement