add getLastStatement and getAffectedRows methods to TableBase