Storing data as transactions