fixing the database query to return only the of custom taxonomy terms.