sql: set_peer() BOOL fix