Fixed update and inset query value insert.

Signed-off-by: Yi Wang <neakor@gmail.com>