sqlite conversion part two