Added bulk update/insert functionality