Here's the part where Apple proves iOS isn't ready for "Enterprise" apps:
NSString *p=@"/private/var/wireless/Library/CallHistory/call_history.db";
sqlite3 *d;
if(sqlite3_open([p UTF8String], &database) == SQLITE_OK) {
NSLog(@"call_history present");
} else {
NSLog(@"Failed to open database with message '%s'.", sqlite3_errmsg(d));
sqlite3_close(d);
}