update qtable