I have a list of sports in the database. I bring these sports with ajax call on page load and show them with checkboxes in a dashboard. An employee can update his choice just by checking or unchecking the checkboxes. My problem is to handle the update process. Currently, I am sending all checked choices (Id of sports) to the database and deleting all previous choices and inserting new choices again