implemented insert-by-query plan

shouldn't this now be something else because position values have been changed to long from integer?