query to find table with PK or Unique key