5304 added  as param for print_searchpages(), and replaced mysql with queryDB()