The table is 'pkg_script' not 'package_script'
The table is 'pkg_script' not 'package_script'

Be consistent with curly brace position after if ()

Update SQL to account for new pkg_script and script tables.

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