Accept optional database connection for CSVDriver to allow sharding