Refine all tables