Code for editing words adjusted to the changed DB structure.