Simplify sql decoding

use yield instead of pointers