add scripts to simplify upgrading and add upgrade scripts for 1.3