a modified version of addMissingRows() able to handle complex keys