subsume cleanup function for all tables