title: Using an existing SQLite database in MagicalRecord
body: <p>I've created a SQLite database that contains records from some JSON using <a href="http://www.raywenderlich.com/12170/core-data-tutorial-how-to-preloadimport-existing-data-updated" rel="nofollow">this tutorial</a>, and I want to use MagicalRecord to query it.</p>
  
  <p>MagicalRecord sees the NSManagedObject (<code>BlogPost</code>) and can create records, but it doesn't see the prepopulated records, so I'm guessing it's not seeing the SQLite file I've added. I've verified that the SQLite database does indeed contain rows using a SQLite client.</p>
  
  <p>In <code>application:didFinishLaunchingWithOptions:</code>, I've put:</p>
  
  <pre><code>[MagicalRecord setupCoreDataStackWithStoreNamed:@"DBG.sqlite"];
  </code></pre>
  
  <p>And in <code>applicationWillTerminate:</code>:</p>
  
  <pre><code>[MagicalRecord cleanUp];
  </code></pre>
  
  <p>When I call <code>[BlogPost MR_findAll]</code> in a controller, it returns an empty set. DBG.sqlite is at the root of the project directory, and I've tried putting it in "Copy Bundle Resources", but <code>blogPosts</code> still returns an empty set.</p>
  
  <p>Any ideas?</p>