Adding mongo db api.