Updated tables and close