first implementation of mongoRepository