query for advanced profile stats

- Jacques will an email with the advanced profile stats
- refactored the method to send emails
Merge pull request #10 from jcapron/jc/adv_profile_stats

query for advanced profile stats