empty db bug