create insert method