fix connection string to read from registry correctly