Oh dear. It's a very long time since it was permissible to use a water supply pipe as an earth (if that's what you have) - for the main reason that one day the supply pipe will become plastic and you'll have no earth at all.yep that's all I can see
I think you need an electrician - but close your ears when he/she first gets sight of that wiring!
Kind Regards, John