Postgresql Insert From Query Sql Create Table With Primary