Tweaks to stateful deployment path
Added basic example of pipeline stateful query