create a db from csv file