added mongoose and updated two endpoint names