primary key fields now show (PK) after field name
simplified code to tell UI which fields are primary keys
fixed bug in showing datatype/PK after field name in db editor
fixed bug where reordering fields would cause foreign-key lines to jump to the wrong location