updated example mongodb