fix api.pp and registry.pp to work with postgresql

Validation SQL connection string for postgres was wrong. Compare with
the code section som lines below the patched line, where the correct value is used.

Change-Id: I772761168374fbe4957886026b52ff607002f7d5