Refactor mongodb classes

Change-Id: Iaadd59e59f5a73be5eb70930d88bdd0769816b2e
Related-PROD: PROD-19892
2 files changed