a shell script to dump hive query to mongo