[ WIP ] Adding ability to switch between insert & update

Maybe remove the trailing ?