buildTableMetadata
Builds the table metadata based on the database type and the ResultSet from the query.
Return
the TableMetadata object representing the table metadata.
Parameters
tables
the ResultSet containing the table's meta-information.