[ WIP ] Adding ability to switch between insert & update

I think you want to parse the json first before attaching the _indexAttributes