Change json.php to use PDO.