Update to use mongodb::server class

Prior to this commit we used the now deprecated base class. This
commit changes the declaration to use the new class