added delete function for Complete which removes task from database