so im building an app to manage automated scheduled alerts and reports based on data stored in our HR system. we currently have a tool provided by the supplier but it's fairly clunky and limited which is why I'm designing something better. We currently write an SQL query which I would like to do in the new solution. When the end user is creating a new alert in the app they will need to store the SQL which will be run at the scheduled time, does anyone know how I can achieve this? open to suggestions of trying a different approach, I've connected the app up to our database to pull table details through so perhaps I could build a more visual approach to report building? The results will need to be emailed as an excel via when the schedule runs.