Saving due date in database instead of recalculating

Made changes so that the due_date field is no longer overridden by my
method and is now updated when any change is made that could affect it,
i.e. working period, sla priority and pause changes.