TODO updated
Fixed purchase search by name
Fixed bug with searchIDByname in category
Added method to  searchIDByname in person