Fix logic breaking pkg_* tables being populated on register
Fix logic breaking pkg_* tables being populated on register

Fixes pkg_categories, pkg_licenses, pkg_groups, pkg_users, pkg_shlibs

skoef/pkg,skoef/pkg,Open343/pkg,khorben/pkg,en90/pkg,khorben/pkg,junovitch/pkg,en90/pkg,khorben/pkg,Open343/pkg,junovitch/pkg