added an option to insert so as to only print the statement and not
execute