title: DBAccess creating custom DBAccessSettings
body: <p>I am testing DBAccess in order to see if I can use it in a project. I have problems changing the location of the sqlite file, I want it to be in cache directory. Here is part of the code I wrote until now, in AppDelegate.m :</p>
  
  <pre><code>- (DBAccessSettings*)getCustomSettings {
      DBAccessSettings *settings = [[DBAccessSettings alloc] init];
      NSURL *applicationCachesDirectory = [[[NSFileManager defaultManager] URLsForDirectory:NSCachesDirectory inDomains:NSUserDomainMask] lastObject];
      settings.databaseLocation = [applicationCachesDirectory absoluteString];
      settings.defaultDatabaseName = @"myDefaultDB";
      return settings;
  }
  
  - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
      [DBAccess setDelegate:self];
      [DBAccess openDatabaseNamed:@"NSURLProtocolExample"];    
      [NSURLProtocol registerClass:[MyURLProtocol class]];
      return YES;
  }
  </code></pre>
  
  <p>But with the above code I get the following error message:</p>
  
  <p><strong>error >> unable to open database file</strong></p>
  
  <p>Can you shed some light in here?</p>