Minor fixes
Fixes to UPDATE query