glue should help with the leaks in pic #1. I am thinking the PVC
piping is the drain line since it is larger. Not sure if it available in this size, but using either 45 degree elbows or 90 degree "long sweep" style elbows will cut down on the water resistance. Or you could find an appropriate sized clear flexible hose for the drain and not worry about all of those potential places for leaks or elbows. Plus since it is flexible it is easier to work with and around.
For the leak in pic #2, you may have to remove the entire bulkhead fitting, clean off the silicone, replace the rubber gaskets, clean the area around the hole where the gaskets sit and put it back together. Make sure the fitting is stewed on tight. It a lot of work but a lot less expensive compared to potential floor/wall damage and electrical hazards. Good luck with this.