update() and select()