It is possible but there is a very specific way you need to follow in order to do this. First things first, you need a read/write connection to your database:
Once that is there, you can now write back using loops. I am unable to find a link for this part, but let me explore a little more and get back to you here. I will update this post once I find a good link.
Check here for both Macro and non-Macro way to do this: