repaired registrace_data, added transaction
zavod_id DEFAULT NULL, smazano NOT NULL, rozepsane exceptions