Changed server insert functionality