Changed insert/update from array methods