Our database now rejects a task with a duplicate ID.
Fixed some comments in entity manager