Flag to print stats
Fix some error handling
Downgrade a database schema
do_sample_list is added