Cleaned up combine_tables script