input: Write a python function to migrate data from a SQL database to a NoSQL database.
  assert migrate_data(src_db, dest_db) is None
output: def migrate_data(src_db, dest_db):
      import sqlite3
      from pymongo import MongoClient
  
      # Connect to the SQL database
      sql_conn = sqlite3.connect(src_db)
      sql_cursor = sql_conn.cursor()
  
      # Connect to the NoSQL database (MongoDB)
      mongo_client = MongoClient(dest_db)
      mongo_db = mongo_client.get_database()
  
      # Get the list of tables in the SQL database
      sql_cursor.execute("SELECT name FROM sqlite_master WHERE type='table';")
      tables = sql_cursor.fetchall()
  
      for table_name in tables:
          table_name = table_name[0]
  
          # Get all data from the table
          sql_cursor.execute(f"SELECT * FROM {table_name}")
          rows = sql_cursor.fetchall()
  
          # Get the column names
          sql_cursor.execute(f"PRAGMA table_info({table_name})")
          columns = [column[1] for column in sql_cursor.fetchall()]
  
          # Prepare the data for MongoDB insertion
          documents = [dict(zip(columns, row)) for row in rows]
  
          # Insert data into the corresponding MongoDB collection
          if documents:
              mongo_db[table_name].insert_many(documents)
  
      # Close the database connections
      sql_conn.close()
      mongo_client.close()