isVersioningNecessary always uses default connection

Added missing $con variable, isVersioningNecessary doesn't use passed in connection and always connects to default connection