Fixed bugs related to data query from database while loading tables
Fixed bugs related to data query from database while loading tables