-This will not work as each time you are iterating through the loop line 129 will delete all of the books related authors;
- Move line 133 out of the loop (so above line 124), this means you can delete all of the lines previously associated authors and append new ones;