update db and new csv file