few fixes in project2
SQL: trigger BEFORE update