cursor update statement update