SMS: Building the data warehouse