fix if DB is empty