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: I36aa977fd6768b1ea3a96660d8473bf6ecffa277
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>