added foreign key to tasks