Adding functionality to cancelTask: When a beggar cancels his/her own task, the task's is_complete is set to 1 so it does not get re-added to active jobs