Resolving Duplicate Entry For Primary Key Errors: A Comprehensive Guide