Storing forecast data in the database