private void addToOlderDatabase(
      SQLiteDatabase database,
      String name,
      String secret,
      OtpType type,
      Integer counter,
      Boolean googleAccount) {
    ContentValues values = new ContentValues();
    values.put(AccountDb.SECRET_COLUMN, secret);
    values.put(AccountDb.TYPE_COLUMN, type.ordinal());
    values.put(AccountDb.COUNTER_COLUMN, counter);
    if (googleAccount != null) {
      values.put(
          AccountDb.PROVIDER_COLUMN,
          (googleAccount.booleanValue()) ? AccountDb.PROVIDER_GOOGLE : AccountDb.PROVIDER_UNKNOWN);
    }
    values.put(AccountDb.NAME_COLUMN, name);
    database.insert(AccountDb.TABLE_NAME, null, values);
  }
Note: caller should carefully determine the expected value of {@code isGoogleAccount}, which
is affected by multiple factors.

@param isGoogleAccount is a {@code boolean}, not a {@link Boolean}
javatests/com/google/android/apps/authenticator/otp/AccountDbTest.java