Pass the cursor object to the post_statement function call. This will allow for custom logging concerning the execution of the statement.