Ok, after being distracted with other stuff, here is now the source code + example program of dbpre, which can handle cursors.
At least one cursor open at the same time was tested.
The source code can be downloaded from here:
www.the-green-leaf.de/dbpre_v0.2_2012-07-24.zip
More to come, and more stable and tested stuff, when summer and vacations are over :D