LAI 5 - Query tweaks for H2 compatibility

A few update syntaxes had to be changed to make the queries H2 compliant