Generate schemata from MongoDB collections