Modified save method with insert