Gem to convert a postgres query result into a csv file