fix virtual attributes in insert and update statements

VIRTUAL fields were accidentally being included in INSERT and UPDATE statements
as OUTPUT variables