Modified create_profile_binding() and callers to use the DB session from context whenever possible