why dont you display the tables in the browser in a list kind of view and have an edit keywords link for each one... then the keywords could be opened into a text box where you can edit / add / delete keywords.. then click a save button.
You could make this more advanced and have add keywords to all
or just 1 or select a few etc
Just think how you would think it would be easiest to edit then code away.
(im off now... back in about 11 hours (bedtime)) cya
Jonny