add table info sync and fix tab and blank in some files
bugfix for the update function