Sidorov pipe deactivation

System is able to save new pipe with duplicate number #372
implement pipe deactivation use case #367