ในความเป็นจริง system should call insert function for new data that does not existe in database and call update function for data that existe in database
In fact, the system should call insert function for new data that does not existe in database and call update function for data that existe in database.
In fact, the insert function should call for new system data that does not existe in database and call update function for data in that database existe.