packaging: setup: only backup db if hasData

Bug-Url: https://bugzilla.redhat.com/1054226
Change-Id: I3d3fa7884e51606355fd78e6b0542a3c46824807
Signed-off-by: Yedidyah Bar David <didi@redhat.com>