[ WIP ] Adding ability to switch between insert & update

Minor: It would be nice to indicate which attribute is missing, as we have this information right here.