Make the pgsql connstring programmatically configurable
Check connection string right before we connect