the sampled histories now go into the database