update for multiple tables.