Maybe I'll find out as I read further, but this makes me wonder how the primary keys are set. By column name, perhaps?