title: does it possible to save Db file with application and not by adding in from itunes
body: <p>I want the application which work online as well as offline example <code>WhatsApp</code>. For that i have to sync data from web service then store it in sqlite db file. 
  And I want that whoever installs this application would have a slot for automatic saving data in database file. Do I have to add db file from iTunes?</p>
  
  <p>I don't want to use core data concept.
  Is it possible it will be there in with application? </p>
  
  <p>Like in Android there is something called cache memory where db file is stored so there is any sort of provision for it in ios?</p>
  
  <pre><code>+(int)insert_In_AdverImage:(NSString *)strid ImageName:(NSString *)strimg Isshow:(NSString *)strshow LastUpdateId:(NSString *)date isdelete:(NSString *)isdelete Sortorder:(int)sortOrder{
  sqlite3 *database;
  int retValue = 0;
  if(sqlite3_open([databasePath UTF8String], &amp;database) == SQLITE_OK) {
      NSString *tempSQL = [[NSString alloc] initWithFormat:@"INSERT INTO ADVERIMAGE(advId ,advimg ,isshow ,LastUpdateId ,IsDelete  ,SortorderId ) VALUES ('%@', '%@', '%@', '%@', '%@', '%d')", strid, strimg, strshow, date, isdelete, sortOrder];
      const char *sqlStatement = [tempSQL cStringUsingEncoding:NSUTF8StringEncoding];
      sqlite3_stmt *compiledStatement;
      sqlite3_prepare_v2(database, sqlStatement, -1, &amp;compiledStatement, NULL);
      sqlite3_step(compiledStatement);
      retValue = (int)sqlite3_last_insert_rowid(database);
      sqlite3_finalize(compiledStatement);
  }
  sqlite3_close(database);
  return retValue;
  </code></pre>
  
  <p>}</p>
  
  <p>works well. But still the db file in app bundle is empty.i got it that whenever we insert something it will be inserted in document and if we have to see the inserted data we have to get it from document</p>
  
  <p>Thanks in advance</p>
  
  <p>Any Help would be appreciated.</p>