Changed to write function

Does db.read.csv unserialize need to be db_unserialize???