title: Load an existing database to Universal app
body: <p>I'm trying to load an existing database file in a Universal 8.1 app.</p>
  
  <p>I installed all required packages, and I'm using <code>SQLitePCL</code> wrapper.</p>
  
  <p>when I try to open the db file using this command:</p>
  
  <pre><code>conn = new SQLiteConnection("test.db");
  </code></pre>
  
  <p>It's creating a new empty database. (I mean, every <code>SELECT</code> command fails with no such table error. So it's not my database, it's a new one.)</p>
  
  <p>Also,</p>
  
  <pre><code>conn = new SQLiteConnection("ms-appx:///test.db");
  </code></pre>
  
  <p>throws this exception:</p>
  
  <blockquote>
    <p>Unable to open the database file: ms-appx:///test.db Details: unable to open database file</p>
  </blockquote>
  
  <p>my test.db is located into root of Shared project, with <code>Build Action</code> set to <code>Content</code> and <code>Copy to Output Directory</code> set to <code>If Newer</code>.</p>
  
  <p>I'm not sure what I'm doing wrong. Can you help me?</p>
  
  <ul>
  <li>Please accept my apologize if this is a stupid question, I'm new to WinRT programming.</li>
  </ul>