Added bulk_upsert function to manager utils