MySQL data iterator interface