code: def insert_expenditure_entries(database, entries):
      
      entries = map(clean_entry, entries)
      database.expenditures.insert(entries, continue_on_error=True)
docs: Insert a set of records of a expenditure report in the provided database.
  
      Insert a set of new records into the provided database without checking
      for conflicting entries.
  
      @param db: The MongoDB database to operate on. The expenditures collection
          will be used from this database.
      @type db: pymongo.database.Database
      @param entries: The entries to insert into the database.
      @type entries: dict