#MLHR-659  Refactor MongoDB

#MLHR-659 Migrate MongoDB adapters to use the new database adapter interface