title: App chooses a wrong database path
body: <p>I use a database called db.sqlite for my iPhone App.
  For finding the correct path I use the following code:</p>
  
  <pre><code>- (NSString *) filePath {
  NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
  return [[paths objectAtIndex:0] stringByAppendingPathComponent:@"db.sqlite"];
  </code></pre>
  
  <p>}</p>
  
  <p>This returns the following Path:</p>
  
  <pre><code>/Users/*******/Library/Application Support/iPhone Simulator/6.0/Applications/E1D5F78D-7FD2-45D7-A3DE-B53BCBB9BDC5/Documents/db.sqlite
  </code></pre>
  
  <p>But the database at this path is newly created and empty.
  When returning the right path as a string it works well, but I don't think this will work on the iPhone.</p>
  
  <pre><code>return @"/Users/*******/workspace/xcode/MyApp/MyApp/db.sqlite";
  </code></pre>
  
  <p>What did I do wrong or forgot doing?</p>