1.- Fix the Count (*) error query duplicate where clause
2.- Fix the table dir and table components to show the list when the
record is new and the fined in no updated