change the db configuration file to be more flexible and be be able to include different configuration types. for example configurations could be added for the CSV parser.
the yaml or json file could be a map with keys of a type name, for example
db:
user: ....
csv:
separator: ...