fixes query result loading
csv_writer implements column selection