Implement writing openweathermap data to database.