#4 implement to mongodb