Code for mongodb
Dilip