packaging: setup: database: apply indirect reference to db vars

this enables reuse using different database connections.

Change-Id: I587c287d822a7ea8e7ebf34ca70960172edc3fbc
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>