revised mongodb access phase