def save_batch(schedule_queue, transaction_queue, batch):
    """
    Save a batch to file and split it into a queue for scheduling new processes, and a queue for adding transactions to the database 

    :param schedule_queue: The input stream of new data for new processes
    :param transaction_queue: The input stream of transactions to be entered permanently in the database
    """
    batch.save()
    transaction_queue.put(batch)
    schedule_queue.put(batch)
