1,000-year-old farming secrets could save the Amazon rainforest