Get database stuff working

Signed-off-by: Sven Haardiek <Sven@Haardiek.de>