update query extension