utils to convert csv to json and insert into database