Fixed bugs, testing fetchTableCols function