add insert command and position where to insert rows