Added table menu and repaired table and database session data state