code clean of unneeded tables and columns