creating indices in mongodb database wrapper