xw - before refill the database