adding mongodb and adding ad Rest API