Refactor: introduce DBManager and CSVParser