Check mongodb version for both connection types