Speed up Withings Download

.. it was poorly coded to query the db on every new
   measure and didn't use transactions for the updates