Below is my code as of today. I know that the code is run, but nothing shows up in the settings.. what is wrong??

CCommsDbTableView *view;
TInt error;

_LIT(iapNameText,"MyAPN");
TBufC<32> iapName(iapNameText);
_LIT(gprsIfAuthNameText,"");
TBufC<16> gprsIfAuthName(gprsIfAuthNameText);
_LIT(gprsIfAuthPassText,"");
TBufC<16> gprsIfAuthPass(gprsIfAuthPassText);
_LIT(gprsApnText,"myisp.com");
TBufC<16> gprsApn(gprsApnText);

TFileName iExistingIapName;
CCommsDatabase *cdb = CCommsDatabase::NewL(EDatabaseTypeIAP);
CleanupStack::PushL(cdb);

cdb->BeginTransaction();

TUint32 gprsId;
view = cdb->OpenTableLC(TPtrC(OUTGOING_GPRS));
User::LeaveIfError(view->InsertRecord(gprsId));
view->WriteTextL(TPtrC(COMMDB_NAME), iapName);
view->WriteUintL(TPtrC(GPRS_PDP_TYPE), 0);
view->WriteBoolL(TPtrC(GPRS_IP_ADDR_FROM_SERVER), ETrue);
view->WriteBoolL(TPtrC(GPRS_IP_DNS_ADDR_FROM_SERVER), ETrue);
view->WriteTextL(TPtrC(GPRS_IF_AUTH_NAME), gprsIfAuthName);
view->WriteTextL(TPtrC(GPRS_IF_AUTH_PASS), gprsIfAuthPass);
view->WriteTextL(TPtrC(GPRS_APN), gprsApn);
view->WriteBoolL(TPtrC(GPRS_IF_PROMPT_FOR_AUTH), EFalse);
error = view->PutRecordChanges();
CleanupStack::PopAndDestroy(view);

view = cdb->OpenTableLC(TPtrC(IAP));
TUint32 iapId;
User::LeaveIfError(view->InsertRecord(iapId));
view->WriteTextL(TPtrC(COMMDB_NAME), iapName);
view->WriteTextL(TPtrC(IAP_SERVICE_TYPE), TPtrC(OUTGOING_GPRS));
view->WriteUintL(TPtrC(IAP_SERVICE), gprsId);
error = view->PutRecordChanges();
CleanupStack::PopAndDestroy(view);

cdb->CommitTransaction();
CleanupStack::PopAndDestroy(cdb);