Consistent handling of open_db() database name.