Fixed errors in alter table statements which normalise id values and made changes to store 'published' field of Tasks and ArchivedTasks as BIT(1) instead of VARCHAR(50). Part of #950