Updated code for threads to include uuid and business_id
Fixed bugs when upgrading thread modules