Rewriting DB relations: getParents()