title: I can not insert data into sqlite3 file on XCode
body: <p>I did not find answer that satisfy me, I can insert data into database and I can also select from it on simulator, but when I close the simulator and open it again, I can't see any data. Also I opened it on the terminal and I did not see any data in it.
  Did I miss any line or is there any logic error?</p>
  
  <p>What did you try? any suggest for me?</p>
  
  <p>I inserted data into my code is like this:</p>
  
  <pre><code>databasePath = [[NSBundle mainBundle] pathForResource:@"persons" ofType:@"sqlite3"];
          const char *dbpath = [databasePath UTF8String];
          sqlite3_stmt    *statement;
  
          if (sqlite3_open(dbpath, &amp;contactDB) == SQLITE_OK)
          {
              NSString *insertSQL = [NSString stringWithFormat: @"INSERT INTO person (id, name, address, photograph, telephone, fax, district) VALUES (\"%i\",\"%@\", \"%@\", \"%@\",\"%@\",\"%@\",\"%@\")", i, Name,Addresses, Image, Telephone,Fax,District];
  
              const char *query_stmt = [insertSQL UTF8String];
  
              sqlite3_prepare_v2(contactDB, query_stmt, -1, &amp;statement, NULL);
  
              if (sqlite3_step(statement) == SQLITE_DONE)
              {
                  //  NSLog(@"OK");
  
              } else {
                  //  NSLog(@"Problem!!!");
  
              }
              sqlite3_finalize(statement);
              sqlite3_close(contactDB); 
          }
  </code></pre>