select data from csv and put it in database