Use a water softener/filtration system between the water mains and the rotary pump. I use a Flojet pump and bottled water now; but when I had my machine plumbed into the water mains, I used a water pressure regulator set to 30 psi to save wear and tear on seals.
Most 1-group machines have internal pumps, while most multiple group machines use external pumps. It's common for the pump to be wired to the espresso machine, since the signal for the pump to turn on/off comes from the machine's circuitry. I've never seen a grinder wired to the espresso machine, except for some Brasilia models that have internal grinders.
For safeties sake, be sure your machine is wired to a GFCI. Whether you hardwire it or use a plug & receptacle is up to you. My machine is a 110VAC/15 amp and I use a plug & receptacle wired to a 20 amp circuit. edited: IF you machine requires more amps than your circuit is rated for, have it installed by a professional electrician.
The 50Hz grinder is OK to use in a 60Hz circuit.
What make/model of commercial machine/grinder do you have?