update query version