how to perform bulk insert update upsert actions with sqlalchemy orm 79deef24f457