slightly refactored sql.nest example, node alias now adds x-proxy attribute where it applies