fixed updateDeadlineToDB