code: protected void update(List<TableInfo> tableInfos)
      {
          for (TableInfo tableInfo : tableInfos)
          {
              DBObject options = setCollectionProperties(tableInfo);
              DB db = mongo.getDB(databaseName);
              DBCollection collection = null;
              if (tableInfo.getLobColumnInfo().isEmpty())
              {
                  if (!db.collectionExists(tableInfo.getTableName()))
                  {
                      collection = db.createCollection(tableInfo.getTableName(), options);
                      KunderaCoreUtils.printQuery("Create collection: " + tableInfo.getTableName(), showQuery);
                  }
  
                  collection = collection != null ? collection : db.getCollection(tableInfo.getTableName());
  
                  boolean isCappedCollection = isCappedCollection(tableInfo);
                  if (!isCappedCollection)
                  {
                      createIndexes(tableInfo, collection);
                  }
              }
              else
              {
                  checkMultipleLobs(tableInfo);
                  if (!db.collectionExists(tableInfo.getTableName() + MongoDBUtils.FILES))
                  {
                      coll = db.createCollection(tableInfo.getTableName() + MongoDBUtils.FILES, options);
                      createUniqueIndexGFS(coll, tableInfo.getIdColumnName());
                      KunderaCoreUtils.printQuery("Create collection: " + tableInfo.getTableName() + MongoDBUtils.FILES,
                              showQuery);
                  }
  
                  if (!db.collectionExists(tableInfo.getTableName() + MongoDBUtils.CHUNKS))
                  {
                      db.createCollection(tableInfo.getTableName() + MongoDBUtils.CHUNKS, options);
                      KunderaCoreUtils.printQuery("Create collection: " + tableInfo.getTableName() + MongoDBUtils.CHUNKS,
                              showQuery);
                  }
              }
          }
      }
docs: update method update schema and table for the list of tableInfos
  
  @param tableInfos
  list of TableInfos.