Fix the insert UUID code and add comments