Change BulkWrite objects to use bulk write operations
Split update into bulk_update and single update