adding update and all functions

TODO - handle null due date