I need to add this change because obj_id might be either the object's id or its name. I use obj.id to guarantee that we're always putting ids into the DB, so whenever we're looking for this object in the model.Member's table, we can simply filter to where model.Member.table_id == obj.id, not (model.member.table_id == obj.id OR model.Member.table_id == obj.name)