Handle database session management

This commit introduces session management in a way that any operation
executed on the server will get its own database session so that
multiple server or server threads can work in parallel.

Signed-off-by: Lars Kiesow <lkiesow@uos.de>