new basic script that can be used to run queries from a file
fixes for the looping and defaults