register update query