add data.json and convert getData.php to be cmd script