added mongoose
implemented mongoose