I have some sympathy for the OP here, as I have heard of a lot of people running into pain with DBs. But yes, they definitely should not be writing to the UFS, as the OP seems to be doing. However, even if you're using volumes, you need to be careful about what happens when images change etc. It's not trivial.
You need to use external volumes