NEED  TO FIX UPDATING THE BASE RELATIONS