managed mongodb connection a top class level