public profile pages queries correctly