update db class to serch persion by name and TP