added insertArray() and insertJSON()