Implement exporter db to csv