more support for an empty database.