Check that database isn't empty to correctly calculate log(Database Size).