Rewritten Db.index and added Db.aggregate

Db.index() can now be used to create multiple indexes
Db.aggregate() can be used to perform aggregation operations