Fixes for a new or empty database.