include PK in attributes when importing from postgis

Fixes #792