generate csv dump of data from postgres for import into solr