setTableSchema() method changed to fetch column key.