impl string data iterator for sql database