You need a well qualified electrician to sort this out.
As I understand it , you problem may revolve around this situation:
The gas pipe needs to be BONDED TO the grounding system. This prevents the gas pipe from becoming 'hot' in the event of a short of somekind. But the gas pipe should not BE the ground. In the latter case, current could flow in the gas pipe, and you do not want that.