Moved the setup_utility_resources() call to occur after setup_user_details().
Without this adjustment, calling populate_checklists would trigger the insert_user_checklists_for_all_users trigger before user data has been set up, resulting in a failure to correctly insert into the user_checklists table.
Reordering setup steps
setup_utility_resources()
call to occur aftersetup_user_details()
.populate_checklists
wouldtrigger the insert_user_checklists_for_all_users
trigger before user data has been set up, resulting in a failure to correctly insert into theuser_checklists
table.