fix doledb empty logic