mongodb access function ok