Refacrored db connector

Use search method except xpath