Attempting to fix postgres.version KeyError