Store rules by ID