mod_base: remove all zmodal masks when removing existing zmodals.
core: psql: better error message for insert/delete