Finished majority of mongo refactor.