Fixed editing when table has no primary key [closes #27]