Added mongo functionallity