more coding for fetch weather and update db