code: boolean addCompoundMessageFiles(List<StoredFile> associatedFiles) {
  		String messageNonce = associatedFiles.get(0).getId();
  		SQLiteDatabase db = null;
  		long ret = -1;
  		try {
  
  			db = getWritableDatabase();
  			db.beginTransaction();
  			// Always delete existing rows with the same nonce to ensure add/update both work
  			db.delete(TABLE_COMPOUND_MESSAGE_FILESTORE, COMPOUND_FILESTORE_KEY_MESSAGE_NONCE + " = ?", new String[]{messageNonce});
  
  			for (StoredFile file : associatedFiles) {
  				ContentValues values = new ContentValues();
  				values.put(COMPOUND_FILESTORE_KEY_MESSAGE_NONCE, file.getId());
  				values.put(COMPOUND_FILESTORE_KEY_LOCAL_CACHE_PATH, file.getLocalFilePath());
  				values.put(COMPOUND_FILESTORE_KEY_MIME_TYPE, file.getMimeType());
  				values.put(COMPOUND_FILESTORE_KEY_LOCAL_ORIGINAL_URI, file.getSourceUriOrPath());
  				values.put(COMPOUND_FILESTORE_KEY_REMOTE_URL, file.getApptentiveUri());
  				values.put(COMPOUND_FILESTORE_KEY_CREATION_TIME, file.getCreationTime());
  				ret = db.insert(TABLE_COMPOUND_MESSAGE_FILESTORE, null, values);
  			}
  			db.setTransactionSuccessful();
  			db.endTransaction();
  		} catch (SQLException sqe) {
  			ApptentiveLog.e(DATABASE, "addCompoundMessageFiles EXCEPTION: " + sqe.getMessage());
  			logException(sqe);
  		}
  		return ret != -1;
  	}
docs: /*
  Add a list of associated files to compound message file storage
  Caller of this method should ensure all associated files have the same message nonce
  @param associatedFiles list of associated files
  @return true if succeed