Edited app.js to try and get hook working | made models dependent destroy on task deletion