Adding database facade for multiple sql queries

Signed-off-by: RedChrome <redchrome@gmx.de>