Added the DB iterate function to db service, so that you can iterate the whole query results using pagination don't even know about that.