Update queries for dbms problem 1