merged csv2db into class JSONfun