Add src/upgrade_1to2.sh script to create tree and meta tables.