added mongoose and mongodb code