tweak sample table and add sample_stats
store sample stats