working on saving query to profile