Can now write forecasts to database