Added some boilerplate to mongodb
Utilised mongodb in index