Rewrite update_series_db() to fix a few bugs and use threads

We still need to check the lastUpdate value in pysdmx