Codes that help change MySQL to PDO