Yes it is possible. I am aware of 2 ways of doing that.
1) UFLs written in VB or VC++ can provide any imaginable functionality, including writing data back to DB.
2) Report SQL can call DB stored functions, which can not only return values, but also do other things inside them, including writing to DB. This is especially useful when you need to keep track of the last record included in the report (I bet that's what you are trying to accomplish, right?)