Fix namedqueries update - too much escaping