a small script that will accept a sql file and an output directory, saving all results and log files for the query