implementing insertMulti for habtm updates