code: def get_service_agreements(storage_path, status='pending'):
      
      conn = sqlite3.connect(storage_path)
      try:
          cursor = conn.cursor()
          return [
              row for row in
              cursor.execute(
                  '''
                  SELECT id, did, service_definition_id, price, files, start_time, status
                  FROM service_agreements 
                  WHERE status=?;
                  ''',
                  (status,))
          ]
      finally:
          conn.close()
docs: Get service agreements pending to be executed.
  
      :param storage_path: storage path for the internal db, str
      :param status:
      :return: