Decoding using kyotodb