regenerated ddl scripts to include task history work, added simple sql script to migrate data to new columns when upgrading from 6.0 to 6.1

(cherry picked from commit 51a881e4058fb93f8ac3def6c7889c0988ad3d2f)