Php 820 refactor mongo method base

Still plenty of come, but this needs to be incrementally.