Add relationship between departments and tasks