initial attempt at sql to csv