Database for warehouse