Hi Venu,
How about creating a people collection. Each person can have a wealth
field that you can update as their wealth goes up and down.
p= { name:"gates", wealth:500}
db.people.save(p)
db.people.update({name:"gates"}, {$set : {wealth:350}})
Getting the 20 richest people is now as simple as
db.people.find().sort({wealth:-1}).limit(20)
-roger