a function to parse a csv and put it in a postgres table