db.table.update( { "_id" : xxx } , { $set : { "field1" : "value1","field2" : "value2" } } );
db.table.renameCollection(newName)
db.table.drop();