[ WIP ] Adding ability to switch between insert & update

need a better way to do this.
currently I am creating a new lists for keys, prams etc for updates.