Creates an batch insert method