Soap: Don't cache definitions
Revert "Log: Use data entity instead of id directly"

This reverts commit 88bc8c010e09771eb45083d894f9f2eb43d0f2e6.

This complicates things due to FK constraints.