update relate queries to current version