rename $tableName to $formattedTableName