bin/withdraw: Make sure the database is actually open.