properly handling database.local_belongs() == None