Firstly, in answer to the OP:
There isn't anything in XSLT specifically that allows you to do what you are asking. You need to generate something from the XSLT that would either refresh the page (if we are talking web site), either in JavaScript, or just as a full href link.
There is a version of Saxon XSLT CE (Client Edition) which does add the idea of 'events' to XSLT, but I don't know how that works or if that helps, as you are probably running your XSLT on the server in the first place:
http://www.saxonica.com/ce/index.xml
Secondly, Benjoo: I don't think some C# code telling him how to connect to a database is going to be helpful for an XSLT issue.