adding peristence to treasure data