Make 'list' and 'info' accept the '--package-db' option.

Fixes #1598.