Extends the DBCollection object to infer the schema of a MongoDB collection