Backport pkg_install pkgdb fix, and version bump.
Merge branch 'joyent/feature/miscfix/2013Q2' into joyent/release/2013Q2