mongo db wrapper implemented