new script for data warehouse