Writing database output to multiple CSV files. Using postgres cursor. I am getting
error is TypeError: You provided \'undefined\' where a stream was expected