Modifiy not(!) operator in db_w

Modifiy not(!) operator in db_w