title: Switching to another SQLite database after user purchases the full version
body: <p>I'm building an app that teaches English words. The trial version of the app will contain 40 words, and the full version will contain about 2000. I will keep these two as separate databases in assets folder, when the user first downloads the app it will copy the trial database and use it. After the user buys the full version the app will replace the old database with the full one. When the user goes pro, the app will keep user scores on every word so I need database to stand where it is, as unchanged after going full.</p>
  
  <p>This is my basic approach to the problem:</p>
  
  <pre><code>boolean fullVersionCopied = false;
  
  if(purchase != true &amp;&amp; database doesn't exists)
     Copy the trial database from the assets folder.
  
  else(purchase == true &amp;&amp; !fullVersionCopied){
     try{
          Copy the full version database
          fullVersionCopied = true;
      }catch(Exception e){
          fullVersionCopied = false;
  
      }
  }
  </code></pre>
  
  <p>Now I've a few questions. Is this a good approach to do what I want or are there any better ways to do this?</p>
  
  <p>The app will generate an unique random int everytime and use the int to find a word by its id number. I've never worked with databases before. Does it takes lot of time to find a row among 2000 other rows? I will try to make this searching in a different thread but should I divide such a huge database to smaller pieces for granting speed to my app?</p>
  
  <p>Thank you for your answers.</p>