code: def get_db_version(session):
      
      value = session.query(ProgramInformation.value).filter(ProgramInformation.name == "db_version").scalar()
      return int(value)
docs: :param session: actually it is a sqlalchemy session
      :return: version number