getting a mongo db connection object