use instance_id rather than programme_id

Fixes #729 and https://github.com/unikent/of-course/issues/602