refactored id engine with an mvc architecture and a mongocxx and bsoncxx integration for id consistency