Added rough first pass of side-by-side sql/zk impl