Accepts CLI or STDIN query and generates CSV results. Hard coded db values need to be changed