Applying for first time the mongodb connection to post request