looking for a better strategy for an sqlalchemy bulk upsert,existing = db.session.query(Task).filter_by(challenge_slug=slug)