update pipe command to only pipe to a nodejs writable stream
added where() and findWhere() functions