fix virtual attributes in insert and update statements

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