Use CSV gem for writing db results to csv output file
Use TERA mode instead of ANSI in JDBC connection string