FOR MASTER: update tables