Testing code to check postgres primary key creation