[ WIP ] Adding ability to switch between insert & update

Better to avoid such unhelpful variables altogether. It'd be hard to figure out what this counter does later on.