updated getPrimaryResources() used by alternatives.inc.php, with queryDB()