deal with empty neighbordb