Add method getTableInfo to get the information of a table.
And I changed the format.