updated dependency and mongo db connection