csv-to-sql: minor refactoring