Modify the insert method to accept a dataset as argument