Adding mongoose implementation