working on mongodb connection classes