making some changes to the queries on the profile page