Added csv parsing and db writing 2