Add support for database iterator