minor update to allow a model to be passed instead of an array to the
given insert method