mongodb access and testing