if we don't have a dbname, use an empty string, not null