added code to support bound insert and update statements.