Fix primary key discovery

/to @ritch 

See https://github.com/strongloop/loopback-connector-postgresql/issues/17