query for advanced profile stats

- Jacques will an email with the advanced profile stats
- refactored the method to send emails