bugfix #313; use `facility_id` to store associated facility so works with dashboard.