added connection to mongodb