output to target directory
create QueryCursor