adding query to get friends data