Make the "wrong database" error more helpful
Mention in the error message that the --db option exists, so that the
user, especially if they're newcomers, are nudged towards a
solution. To achieve that, do a little refactoring so that the error
message is in a single place