select title,
owner_id as old_owner_id,
all_or_any,
object_type
from contact_searches
where search_id = :search_id
update contact_searches
set owner_id = :owner_id
where search_id = :search_id
select title
from contact_searches
where owner_id = :owner_id
and upper(title) like upper('${title}%')
select type,
var_list
from contact_search_conditions
where search_id = :search_id