You don't need a relay.
The live feed to the boiler goes to terminal 3 and the feed to the pump goes to terminal 4.
You then need to set the Hive to "gravity mode".
To do this you press the left hand button on the Hive receiver for 5 seconds the top green light will change from green to blue...