Implement a function for resetting the pkgdb_it iterator

* This would allow to re-iterate over a pkgdb_it iterator