fix accessor and error when run sql 'show tables'