Iterations on sqlite ++