Rain calculation on MainServer

And store the pure counter in the DB (not in mm)