Support for mongodb

Might have to look at the formatting at various places here