added bulk_upsert function

Added a bulk_upsert function that provides the ability to do bulk updates or inserts