tableExists() doesnt work