cleared old cards and dependant tables