Implemented mongoose and create app endpoint