The foreign key from sensor and action to module is changed to modulerpc.