sql: remove dup up/down vars from set_peer()