warehouse state loaded from database