Postgresql Insert From Query Sql Create Table From Select