add logging for the command to insert into a table