text: #!/usr/bin/python3
  """Start link class to table in database
  """
  import sqlalchemy
  import sys
  from sqlalchemy import create_engine
  from sqlalchemy.orm import sessionmaker
  
  from model_state import Base, State
  
  if __name__ == "__main__":
      engine = create_engine('mysql+mysqldb://{}:{}@localhost/{}'.format
                             (sys.argv[1], sys.argv[2], sys.argv[3]),
                             pool_pre_ping=True)
      Base.metadata.create_all(engine)
      Session = sessionmaker(bind=engine)
      session = Session()
      item = session.query(State).filter_by(name=sys.argv[4]).first()
      if item:
          print("{}".format(item.id))
      else:
          print('Not found')
  
      session.close()
  