You can write your own SQL queries as you'll see in the next lesson. You can use it also inside a bootstrap action that runs within a timer executed when you publish.
I've seen the next video but haven't found the one that describes the timer along with the bootstrap.But I think I get the idea of the process. Thanks!