Hack to persist the data in the database. Does not use the container transaction management.
MAGIC, it works when throwed together in one module. No idea why.