PDO method in export.php