Updated code for threads to include uuid and business_id