my api code
added mongo db connection