Add main functionilities for connect mongo db.