(List.fold_left (fun acc (uri,l) ->
let tv = pgresult_to_string (c#exec ("select id from registry where uri='" ^ uri ^ "'")) in
let qq = "select uri, position from t" ^ tv ^ " where prop_id='" ^ usek ^ "' order by uri asc" in
- print_endline ("@@@@LA QUERY:" ^ qq); flush stdout;
let res = c#exec qq in
(List.map
(function