packaging: setup: database: move connect to database library

this will enable use of single tweaks for different driver versions.

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1067058
Change-Id: I7e6abd911d10013fcbb904254762d90a125078e8
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>