mongo db wrapper + index file and test