fixed multiple updates on node inserting, performance issue

You should use method «execute».
Method «query» used only when the statement returns rows.