Update queries for dbms problem 3