Change mysqli to PDO