[ WIP ] Adding ability to switch between insert & update

Same here.