added a check if record already exists on insert from grid