docs: def lookup_module_ident(id, version):
      """Return the ``module_ident`` for the given ``id`` &
      major and minor version as a tuple.
  
      """
      with db_connect() as db_conn:
          with db_conn.cursor() as cursor:
              cursor.execute(
                  "SELECT module_ident FROM modules "
                  "WHERE uuid = %s "
                  "AND CONCAT_WS('.', major_version, minor_version) = %s",
                  (id, version))
              try:
                  mident = cursor.fetchone()[0]
              except (IndexError, TypeError):
                  ident_hash = join_ident_hash(id, version)
                  raise RuntimeError("Content at {} does not exist."
                                     .format(ident_hash))
      return mident