Delete and update by put code

Right now I'm guessing deleting and update by index doesn't allows work:

https://trello.com/c/aslfoYKV/631-on-some-records-changes-to-work-apply-to-the-wrong-work-or-at-least-appear-to-in-the-ui