deleting old tables from  database