sql: set_peer() handles 'completed' event