How to pass a sql query to osquery and save to a file