bug fix in Table.sync. Only attempt to fetch/generate next primary key if it isnt...