Added getTableByConnection and renamed getTable to getTableById in TableManager.