setup database connection

Signed-off-by: Karel Kellner <karel@kellner.be>