@classmethod
def create_all(cls):
    """Create all required tables."""
    session = cls._session()
    q = 'CREATE TABLE IF NOT EXISTS %s (id INTEGER PRIMARY KEY, obj BLOB)'
    for tablename in cls._known_tables:
        session.execute(q % tablename)
    session.commit()
