fix hourly rate calculation, add /resetTotalEarned endpoint