packaging: setup: fix DB detection and owner from previous versions

Change-Id: Ic2fe256660b233bc682dc22e79cf58d34c546c3a
Bug-Url: https://bugzilla.redhat.com/1015859
Signed-off-by: Alex Lourie <alourie@redhat.com>