Listening to changes in mysql database from OF?

I am trying to make a system where I don’t need to load the whole request every time I’m sending trying to display something requested from my mysql database but instead I’d just like to listen for changes in the database.
what I did before was sending an ofLoadURLAsync-request every time I wanted to display (approx every 20secs). After the request was successful I then need to load quite many images (42) from the webserver. To make this whole process faster I thought I could just check which images are saved since my last request and then just load these. For that I could theoretically save the time of the last request in a variable and when sending my next request only ask for the entries saved afterwards. Does that make any sense or does anyone have a better idea how this could be done?