docs: def get_type(ident_hash):
      """Return the database type for the given ``ident_hash``
      As of now, this could either be a 'Module' or 'Collection'.
  
      """
      id, version = get_id_n_version(ident_hash)
  
      stmt = _get_sql('get-type.sql')
      args = dict(id=id, version=version)
  
      with db_connect() as db_conn:
          with db_conn.cursor() as cursor:
              cursor.execute(stmt, args)
              type = cursor.fetchone()[0]
      return type