working csv -> database