Problem with DS1302 RTC module

When the RTC works correctly, the water pump is not running ?
Or is the USB supply also enough to run the pump?
Anyway, if the problem is electrical noise from the pump, check there is a fly back diode across it.