generalized the remove/find db related operation
Fixed the \r\n issue with csv importing and exporting