read and write the results from a datastore