Added checkTables