Remove serializer code from db model classes

SQLalchemy uses an interator to lazy load the objects. Let's make use of this
which unfortunately requires us to iterate on the depended objects.
But that allows us to transform the output into any format we like.

Signed-off-by: Christoph Kassen <c.kassen@telekom.de>