[IMP] registry: add method get_cursor() to simply retrieve a new cursor, and refactor...