usrloc: fix db_update_addr and db_delete_ucontact_addr

use query WHERE columns depending on matching_mode option